{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=2949
  Verdict: Accepted
}
uses SysUtils, Math;
 
var
	n,m:int64;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(n,m);
write(m,' ',n);
end.
 